home *** CD-ROM | disk | FTP | other *** search
- defineps PSgetfont(float size)
- /Times-Roman findfont size scalefont setfont
- endps
-
-
- defineps PSInit()
- % /Times-Roman findfont totalx 10 div scalefont setfont
- /Times-Roman findfont 100 10 div scalefont setfont
-
- /drawcone {
- % angle gray distance
- /x_distance exch def
- setgray
- sin x_distance mul
- /y_distance exch def
- 0 0 moveto
- x_distance y_distance lineto
- x_distance y_distance neg lineto
- closepath fill
- } bind def
-
- /drawall {
- % totalx totaly beamx beamy maxtheta mintheta inverse
- gsave
- /inverse exch def
- /mintheta exch def
- /maxtheta exch def
- /beamy exch def
- /beamx exch def
- /totaly exch def
- /totalx exch def
- inverse { 1 setgray } { 0 setgray } ifelse
- 0 0 totalx totaly rectfill
- beamx beamy translate
- maxtheta -0.8 mintheta
- {dup maxtheta exch sub maxtheta mintheta sub div
- inverse { 1 exch sub } if
- totalx beamx sub drawcone}
- %
- for
- [ -1 0 0 1 0 0 ] concat
- maxtheta -1.6 mintheta
- {dup maxtheta exch sub maxtheta mintheta sub div
- inverse { 1 exch sub } if
- beamx drawcone}
- for
- grestore
- } bind def
-
- endps
-
- defineps PSdrawBeams(float totalx, totaly, fractionToDraw)
- gsave
- /deltax totalx 9 div def
- /deltay totaly 4 div def
- /beamx deltax 3 mul def
- /beamy totaly deltay 1.5 mul sub def
- /minangle 1 def
- /maxangle fractionToDraw 14.0362 mul def
-
- 0 setgray
- 0 0 totalx totaly rectfill
- totalx totaly beamx beamy maxangle minangle false drawall
- grestore
- endps
-
-
-